package com.ctl.szmd.szmd.feature_wm.ui.viewmodel

import androidx.lifecycle.viewModelScope
import com.ctl.szmd.szmd.feature_wm.data.repository.WmRepository
import com.ctl.szmd.szmd.feature_wm.ui.base.BaseWmViewModel
import kotlinx.coroutines.launch

/**
 * created by : chentl
 * Date: 2020/07/30
 */

class FileDisplayViewModel(private val repository: WmRepository) : BaseWmViewModel() {
    fun getDownLoadFile(url: String, name: String) = viewModelScope.launch {
        repository.downloadFile(url, name)
    }
}